<?php
namespace App\Modules\Medicinal\Models;
use Illuminate\Database\Eloquent\Model;

class Medicinal extends  Model{

    protected $table = 'medicinal';
    protected $fillable = ['id','medicinal_en','medicinal_cn','tag', 'insulin_type', 'insulin_preparation', 'created_at', 'updated_at','status','image'];

    static function getList()
    {
        return self::where('status',1)->where('tag',1)->orderBy('created_at','desc')->get();
    }
}
